Skip to main content

Class: EncryptionKey

GroupKeys are AES cipher keys, which are used to encrypt/decrypt StreamMessages (when encryptionType is AES). Each group key contains 256 random bits of key data and an UUID.

Constructors

constructor

new EncryptionKey(groupKeyId, data)

Parameters

NameType
groupKeyIdstring
dataUint8Array

Methods

generate

Static generate(id?): EncryptionKey

Parameters

NameType
idstring

Returns

EncryptionKey